<template>
	<view class="album-management">
		<!-- 占位用 -->
		<view class="" :style="{'height': systemBarHeight*2+'rpx'}"></view>
		<!-- 用户信息 -->
		<UserMessage></UserMessage>
		<view class="custom-server">
			<view class="strategy">
				云相册最强攻略
			</view>
			<view class="service">
				<view class="service-icon">
					<image src="/static/icon/客服 (1).png" mode=""></image>
				</view>
				<view class="call-service">
					联系客服
				</view>
			</view>
		</view>
		<Manage title="我的相册"></Manage>
		<Manage title="素材搬家/抓图"></Manage>
		<Manage title="相册分类管理"></Manage>
		<Manage title="线上交易"></Manage>
		<Manage title="绑定微信" :bindWx="true"></Manage>
		<Manage title="设置"></Manage>
		<view class="backend-buyer">
			<view class="backend">
				PC管理后台
			</view>
			<view class="center">
				|
			</view>
			<uni-badge class="badge" absolute="rightTop" is-dot text="1">
				<view class="buyer">
					买家中心
				</view>
			</uni-badge>
		</view>
		<ShopCar></ShopCar>
	</view>
</template>

<script>
	import ShopCar from "../../components/ShopCar/ShopCar.vue"
	import Manage from "../../components/manage.vue"
	import UserMessage from "../../components/albumManagement/userMessage/index.vue"
	export default {
		data() {
			return {
				systemBarHeight: 0
			}
		},
		created() {
			this.getSystemBarHeight()
		},
		methods: {
			getSystemBarHeight() {
				uni.getSystemInfo({
					success: (res) => {
						console.log(res.statusBarHeight)
						this.systemBarHeight = res.statusBarHeight
					}
				})
			}
		},
		components: {
			UserMessage,
			Manage,
			ShopCar
		}
	}
</script>

<style lang="scss" scoped>
	.album-management {
		padding: 40rpx;
		.custom-server {
			width: 100%;
			height: 136rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			margin-bottom: 40rpx;
			background: url("/static/icon/fb84bf5f5dd5d945e774cebd9739374d.jpeg") no-repeat 100% 100%;
			.service {
				color: white;
				display: flex;
				.service-icon {
					width: 32rpx;
					height: 32rpx;
					image {
						width: 100%;
						height: 100%;
					}
				}
				.call-service {
					font-size: 24rpx;
					margin-left: 6rpx;
				}
			}
			.strategy {
				color: #fff;
			}
		}
		.backend-buyer {
			width: 100%;
			display: flex;
			justify-content: center;
			margin-top: 36rpx;
			font-size: 36rpx;
			color: #5F6F82;
			.center {
				margin: 0 20rpx;
			}
		}
	}
</style>
